package com.leyou.sh.item.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.sh.common.dto.PageDTO;
import com.leyou.sh.item.dto.SkuDTO;
import com.leyou.sh.item.dto.SpecParamDTO;
import com.leyou.sh.item.dto.SpuDTO;
import com.leyou.sh.item.dto.SpuDetailDTO;
import com.leyou.sh.item.entity.Spu;
import com.leyou.sh.item.entity.SpuDetail;

import java.util.List;

/**
 * @author balisong_fcs
 * @date 2020/12/28 22:34
 * @desc
 */
public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> querySpuByPage(Long brandId, Long categoryId, Long id, Integer page, Integer rows, Boolean saleable);

    void saveSpu(SpuDTO spuDTO);

    void updateGoods(SpuDTO spuDTO);

    List<SpecParamDTO> querySpecParamValue(Long id, Boolean searching);

    void updateSaleable(Long id, Boolean saleable);

    SpuDTO queryById(Long id);

    SpuDTO querySpuById(Long spid);
}
